public class didi {
    public static void main(String[] args) {
        double i = 1,sum = 0,count = 1;
        while (i <= 100){
            count = count * i;
            sum += count;
            i++;
        }
        System.out.println("1!+2!+3!+…+100!的值为"+count);
    }
}
